package com.campus.delivery.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.campus.common.mybatis.entity.IntegerIdBaseEntity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author ZhaoYuJie
 * @since 2025-05-12
 */
@Getter
@Setter
@TableName("goods")
@ApiModel(value = "Goods对象", description = "商品表")
public class Goods extends IntegerIdBaseEntity<Goods> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("商品价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty("原价")
    @TableField("original_price")
    private BigDecimal originalPrice;

    @ApiModelProperty("商品图片URL")
    @TableField("image")
    private String image;

    @ApiModelProperty("商品描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("打包费")
    @TableField("packaging_fee")
    private BigDecimal packagingFee;

    @ApiModelProperty("销量")
    @TableField("sales")
    private Integer sales;

    @ApiModelProperty("评分")
    @TableField("rating")
    private BigDecimal rating;

    @ApiModelProperty("所属分类ID")
    @TableField("category_id")
    private Integer categoryId;

    @ApiModelProperty("所属商户ID")
    @TableField("merchant_id")
    private Integer merchantId;

    @ApiModelProperty("状态：1-上架，0-下架")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Override
    public Serializable pkVal() {
        return null;
    }
}
